import Base from './Base';
import { BaseProps } from '../interface';

export default class FillRectangle extends Base {
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
  constructor(props: BaseProps) {
    super(props);
  }

  paint() {
    this.ctx.fillStyle = this.bgColor;
    this.ctx.fillRect(this.x, this.y, this.width, this.height);
  }
}